export const sjcNodes = [
  {
    shape: 'flow-chart-ellipse',
    attrs: {
     
      text: { text: '开始' }
    },
    
  },
  {
    shape: 'flow-chart-rect',
    attrs: {
      text: { text: '流程节点1' }
    }
  },
  {
    shape: 'flow-chart-rect',
    attrs: {
      text: {
        text: '流程节点1',
      },
    },
  },
  {
    shape: 'flow-chart-rhombus',
    width: 52,
    height: 52,
    angle: 45,
    attrs: {
      'edit-text': {
        style: {
          transform: 'rotate(-45deg)',
        },
      },
      text: {
        text: '判断',
        transform: 'rotate(-45deg)',
      },
    },
  
  },
  {
    shape: 'flow-chart-ellipse',
    attrs: {
      body: {
        rx: 24,
        ry: 24,
      },
      text: {
        text: '结束',
      },
    },
  },
  {
    shape: 'flow-chart-rect',
    attrs: {
      text: {
        text: '流程节点2',
      },
    },
  },
  {
    shape: 'flow-chart-rect',
    attrs: {
      text: {
        text: '流程节点3',
      },
    },
  },
  {
    shape: 'flow-chart-rect',
    attrs: {
      text: {
        text: '流程节点4',
      },
    },
  },
  {
    shape: 'flow-chart-rect',
    attrs: {
      text: {
        text: '流程节点5',
      },
    },
  },
  {
    shape: 'flow-chart-image-rect',
    width: 80,
    height: 42,
    attrs: {
      image: {
        'xlink:href': 'public/img/xunhuan.png',
        width: 76,
        height: 40,
        y: 1,
      },
      ports: {
        // 定义一个名为 groups 的对象，用于存储不同组的配置
        groups: {
          // 定义一个名为 top 的组
          top: {
            // 设置该组的定位为 'top'，表示在顶部
            position: 'top',
            // 定义该组的属性
            attrs: {
              // 定义一个名为 circle 的属性，用于描述一个圆
              circle: {
                // 设置圆的半径为 3
                r: 3,
                // 设置圆是否为磁吸点，true 表示是
                magnet: true,
                // 设置圆的边框颜色为 '#5F95FF'
                stroke: '#5F95FF',
                // 设置圆的边框宽度为 1
                strokeWidth: 1,
                // 设置圆的填充颜色为白色
                fill: '#fff',
                // 定义圆的样式
                style: {
                  // 设置圆的可见性为隐藏
                  visibility: 'hidden',
                },
              },
            },
          },
          
          right: {
            position: 'right',
            attrs: {
              circle: {
                r: 3,
                magnet: true,
                stroke: '#5F95FF',
                strokeWidth: 1,
                fill: '#fff',
                style: {
                  visibility: 'hidden',
                },
              },
            },
          },
          bottom: {
            position: 'bottom',
            attrs: {
              circle: {
                r: 3,
                magnet: true,
                stroke: '#5F95FF',
                strokeWidth: 1,
                fill: '#fff',
                style: {
                  visibility: 'hidden',
                },
              },
            },
          },
          left: {
            position: 'left',
            attrs: {
              circle: {
                r: 3,
                magnet: true,
                stroke: '#5F95FF',
                strokeWidth: 1,
                fill: '#fff',
                style: {
                  visibility: 'hidden',
                },
              },
            },
          },
        },
        items: [
          {
            id: 'port1',
            group: 'top',
                  },
          {
            id: 'port2',
            group: 'top',
                  },
          {
            id: 'port3',
            group: 'top',
                  },
          {
            id: 'port4',
            group: 'right',
          },
          {
            id: 'port5',
            group: 'right',
          },
          {
            id: 'port6',
            group: 'right',
          },
          {
            id: 'port7',
            group: 'bottom',
          },
          {
            id: 'port8',
            group: 'bottom',
          },
          {
            id: 'port9',
            group: 'bottom',
          },
          {
            id: 'port10',
            group: 'left',
          },
          {
            id: 'port11',
            group: 'left',
          },
          {
            id: 'port12',
            group: 'left',
          }
        ],
      }
    },
  },
  // ...其他节点配置
];
